package com.ruoyi.appService.CollegeStudents.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.appService.CollegeStudents.mapper.ZCollegeStudentsMapper;
import com.ruoyi.appService.CollegeStudents.domain.ZCollegeStudents;
import com.ruoyi.appService.CollegeStudents.service.IZCollegeStudentsService;

/**
 * 大学生心理健康量表Service业务层处理
 *
 * @author yuqihe
 * @date 2025-05-16
 */
@Service
public class ZCollegeStudentsServiceImpl extends ServiceImpl<ZCollegeStudentsMapper, ZCollegeStudents> implements IZCollegeStudentsService {
    @Autowired
    private ZCollegeStudentsMapper zCollegeStudentsMapper;

    /**
     * 查询大学生心理健康量表
     *
     * @param id 大学生心理健康量表主键
     * @return 大学生心理健康量表
     */
    @Override
    public ZCollegeStudents selectZCollegeStudentsById(Long id) {
        return zCollegeStudentsMapper.selectZCollegeStudentsById(id);
    }

    /**
     * 查询大学生心理健康量表列表
     *
     * @param zCollegeStudents 大学生心理健康量表
     * @return 大学生心理健康量表
     */
    @Override
    public List<ZCollegeStudents> selectZCollegeStudentsList(ZCollegeStudents zCollegeStudents) {
        return zCollegeStudentsMapper.selectZCollegeStudentsList(zCollegeStudents);
    }

    /**
     * 新增大学生心理健康量表
     *
     * @param zCollegeStudents 大学生心理健康量表
     * @return 结果
     */
    @Override
    public int insertZCollegeStudents(ZCollegeStudents zCollegeStudents) {
            return zCollegeStudentsMapper.insertZCollegeStudents(zCollegeStudents);
    }

    /**
     * 修改大学生心理健康量表
     *
     * @param zCollegeStudents 大学生心理健康量表
     * @return 结果
     */
    @Override
    public int updateZCollegeStudents(ZCollegeStudents zCollegeStudents) {
        return zCollegeStudentsMapper.updateZCollegeStudents(zCollegeStudents);
    }

    /**
     * 批量删除大学生心理健康量表
     *
     * @param ids 需要删除的大学生心理健康量表主键
     * @return 结果
     */
    @Override
    public int deleteZCollegeStudentsByIds(Long[] ids) {
        return zCollegeStudentsMapper.deleteZCollegeStudentsByIds(ids);
    }

    /**
     * 删除大学生心理健康量表信息
     *
     * @param id 大学生心理健康量表主键
     * @return 结果
     */
    @Override
    public int deleteZCollegeStudentsById(Long id) {
        return zCollegeStudentsMapper.deleteZCollegeStudentsById(id);
    }
}